package com.ruoyi.qxk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qxk.mapper.RepairReservationMapper;
import com.ruoyi.qxk.domain.RepairReservation;
import com.ruoyi.qxk.service.IRepairReservationService;

/**
 * 维修任务管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class RepairReservationServiceImpl implements IRepairReservationService 
{
    @Autowired
    private RepairReservationMapper repairReservationMapper;

    /**
     * 查询维修任务管理
     * 
     * @param id 维修任务管理主键
     * @return 维修任务管理
     */
    @Override
    public RepairReservation selectRepairReservationById(Long id)
    {
        return repairReservationMapper.selectRepairReservationById(id);
    }

    /**
     * 查询维修任务管理列表
     * 
     * @param repairReservation 维修任务管理
     * @return 维修任务管理
     */
    @Override
    public List<RepairReservation> selectRepairReservationList(RepairReservation repairReservation)
    {
        return repairReservationMapper.selectRepairReservationList(repairReservation);
    }

    /**
     * 新增维修任务管理
     * 
     * @param repairReservation 维修任务管理
     * @return 结果
     */
    @Override
    public int insertRepairReservation(RepairReservation repairReservation)
    {
        return repairReservationMapper.insertRepairReservation(repairReservation);
    }

    /**
     * 修改维修任务管理
     * 
     * @param repairReservation 维修任务管理
     * @return 结果
     */
    @Override
    public int updateRepairReservation(RepairReservation repairReservation)
    {
        return repairReservationMapper.updateRepairReservation(repairReservation);
    }

    /**
     * 批量删除维修任务管理
     * 
     * @param ids 需要删除的维修任务管理主键
     * @return 结果
     */
    @Override
    public int deleteRepairReservationByIds(Long[] ids)
    {
        return repairReservationMapper.deleteRepairReservationByIds(ids);
    }

    /**
     * 删除维修任务管理信息
     * 
     * @param id 维修任务管理主键
     * @return 结果
     */
    @Override
    public int deleteRepairReservationById(Long id)
    {
        return repairReservationMapper.deleteRepairReservationById(id);
    }

    @Override
    public int update(Long id) {
        return repairReservationMapper.update(id);
    }

    @Override
    public int selectStatusById(Long id) {
        return repairReservationMapper.selectStatusById(id);
    }
}
